<template>
    <div class="list">
        <div class="box" v-for="(item,index) in list" :key="index">
            <div class="top" style="display:flex;justify-content:space-between">
                <div class="name">{{item.name}}&emsp;></div>
            <span class="status">{{item.status?'已送达':'未送达'}}</span>
            </div>
            <div class="jian"><div>10减3</div><div>10减3</div><div>10减3</div></div>
            
            <div class="price">{{item.price}}</div>
            <div class="agin">再来一单</div>
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            list:[{name:'纯手工饺子(凤城久路店)',status:true,price:17.8},
            {name:'唐久便利店(海荣名城店)',status:false,price:18.3},
            {name:'美荣水果(北美店)',status:true,price:28.89}
            ]
    }
    }
}
</script>

<style scoped>
.list{
    flex: 1;
    overflow: auto;
    margin-top: 20px;
   /* border: 1px solid gray;  */
   padding: 15px;
}
.box>div:nth-child(1) .name{
    font-size: 20px;
   font-weight: 800;

}
.box{
    margin-bottom: 20px;
    height: 150px;
}
.box .jian{
     display: flex;
}
.box .jian div{
    margin-top: 10px;
    margin-right: 10px;
    width: 42px;
    height: 12px;
    font-size: 12px;
    border: 1px solid orange;
}
.box .price{
    position: fixed;
    right: 30px;
}
.box .agin{
    width: 82px;
    height: 33px;
    border: 1px solid blue;
    color: blue;
    border-radius: 82px;
    text-align: center;
    line-height: 33px;
    position: fixed;
    right: 10px;
    margin-top: 40px;
    
}
</style>